package edu.hbsi.demo4;
import java.util.Scanner;
public class TestSan {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入三角形的三边长（用空格分隔）: ");
        int x = scanner.nextInt();
        int y = scanner.nextInt();
        int z = scanner.nextInt();

        try {
            San sanj = new San(x, y, z);
            sanj.showInfo();
            double area = sanj.getArea();
            System.out.println("三角形的面积为: " + area);
        } catch (NotSanjiaoException e) {
            System.out.println(e.getMessage());
        }
    }
}